<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link href="../css/bootstrap.min.css" rel="stylesheet">
  <script src="../js/bootstrap.bundle.min.js"></script>
  <script src="../js/axios.min.js"></script>
</head>
<style>
  html,
  body {
    height: 100%;
  }

  .active {
    display: block;
  }
</style>

<body style="display: flex;">
  <div class="d-flex flex-column flex-shrink-0 p-3 text-white bg-dark"
    style="width: 280px; background-color: rgb(11, 55, 112); opacity:.8;height:100%">
    <a class="d-flex align-items-center mb-3 mb-md-0 me-md-auto text-white text-decoration-none">
      <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" fill="currentColor"
          class="bi bi-house-door-fill" viewBox="0 0 16 16">
          <path
              d="M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z" />
      </svg>
      <span class="fs-5">晨锋管理系统</span>
  </a>
    <hr>
    <ul class="nav nav-pills flex-column mb-auto">
      <li class="nav-item" id="li1">
        <a href="#" class="nav-link text-white" aria-current="page">
          首页
        </a>
      </li>
      <li id="li2">
        <a href="#" class="nav-link text-white" aria-current="page">
          管理员表
        </a>
      </li>
      <li id="li3">
        <a href="#" class="nav-link text-white" aria-current="page">
          读者注册信息表
        </a>
      </li>
      <li id="li4">
        <a href="#" class="nav-link text-white" aria-current="page">
          读者借书登记
        </a>
      </li>
      <li id="li5">
        <a href="#" class="nav-link text-white" aria-current="page">
          图书信息详情表
        </a>
      </li>
      <li id="li6">
        <a href="#" class="nav-link text-white" aria-current="page">
          图书分类
        </a>
      </li>
      <li id="li7">
        <a href="#" class="nav-link active">
          图书借阅详情表
        </a>
      </li>
    </ul>
    <hr>
  </div>
  <div class="b-example-divider" style="height: 100%;width:calc(100% - 280px);">
    <div class="header1" style="height:70px;background-color:rgb(11, 55, 112); opacity:.8">
      <div class="left" style="font-size: 20px; color: #fff;line-height: 70px;"></div>
    </div>
    <div class="scoreList" style="height:calc(100% - 70px);background-color:#fff;padding:50px;">
      <div class="list">
        <table class="table table-bordered" style="text-align: center;">

          <button class="btn btn-primary" data-bs-toggle="modal" data-bs-target="#myModal"
            class="btn btn-primary" style="margin-bottom: 20px;">
            添加
          </button>

          <!-- 模态框 -->
          <div class="modal fade" id="myModal">
            <div class="modal-dialog">
              <div class="modal-content">

                <!-- 模态框头部 -->
                <div class="modal-header">
                  <h4 class="modal-title">请输入要添加的信息</h4>
                  <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
                </div>

                <!-- 模态框内容 -->
                <div class="modal-body" style="margin-left: 20px;">
                  <!-- 模态框内容.. -->
                  <input type="hidden" id="bid">
                  图书名字：    <input type="text" placeholder="请输入添加的图书名字" style="margin-left: 26px;" id="name"></br>
                  图书借阅情况：<input type="text" placeholder="请输入图书状态" style="margin-top: 15px;" id="lend"></br>
                  图书借阅次数：<input type="text" placeholder="请输入图书借阅次数 " style="margin-top: 15px;" id="number"></br>
                </div>

                <!-- 模态框底部 -->
                <div class="modal-footer">
                  <button class="btn btn-primary" onclick="addBook()">确定</button>
                  <button class="btn btn-danger" data-bs-dismiss="modal">关闭</button>
                </div>

              </div>
            </div>
          </div>
          <thead>
            <tr>
              <th>编号</th>
              <th>图书名字</th>
              <th>图书借阅情况</th>
              <th>图书借阅次数</th>
              <th>操作</th>
            </tr>
          </thead>
          <tbody>
            <!-- <tr>
              <td>Mumbai</td>
              <td>400003</td>
              <td>560001</td>
            </tr> -->
          </tbody>
          <!--  修改模态框 -->
          <div class="modal fade" id="mmyModal">
            <div class="modal-dialog">
              <div class="modal-content">

                <!-- 模态框头部 -->
                <div class="modal-header">
                  <h4 class="modal-title">请输入要添加的信息</h4>
                  <button type="button" class="btn-close" data-bs-dismiss="modal"></button>
                </div>

                <!-- 模态框内容 -->
                <div class="modal-body" style="margin-left: 20px;">
                  <!-- 模态框内容.. -->
                  <input type="hidden" id="hid">
                  图书名字：    <input type="text" placeholder="请输入添加的图书名字" style="margin-left: 26px;" id="hname"></br>
                  图书借阅情况：<input type="text" placeholder="请输入图书状态" style="margin-top: 15px;" id="hlend"></br>
                  图书借阅次数：<input type="text" placeholder="请输入图书借阅次数 " style="margin-top: 15px;" id="hnumber"></br>
                </div>

                <!-- 模态框底部 -->
                <div class="modal-footer">
                  <button class="btn btn-primary" onclick="updateBook()">确定</button>
                  <button class="btn btn-danger" data-bs-dismiss="modal">关闭</button>
                </div>

              </div>
            </div>
          </div>
        </table>
      </div>
    </div>
    <script src="../js/moment.js"></script>
    <script src="../js/skip.js"></script>
    <script src="../js/booklend.js"></script>
</body>

</html>